﻿using OPM.Models;
using OPM.ServiceGeneral;

namespace OPM.Class
{
    public static class WSG
    {
        #region General Service

        public static string EncodeString(string string_to_encode)
        {
            var s = new GeneralSoapClient();
            string resultStr = s.EncodeString(string_to_encode);
            return resultStr;
        }

        public static OpmDetail GetOPMDetails()
        {
            var s = new GeneralSoapClient();
            var resultStr = s.GetOPMDetails();
            OpmDetail result = Newtonsoft.Json.JsonConvert.DeserializeObject<OpmDetail>(resultStr);
            return result;
        }

        #endregion
    }
}